#define ADT7420_Slave_Add 0x48
#pragma import(__use_no_semihosting_swi)
uint8_t RxBuffer=0;
struct __FILE { int handle; /* Add whatever you need here */ };
FILE __stdout;
FILE __stdin;
void _sys_exit(int x) 
{ 
    x = x; 
} 
void _ttywrch(int ch)
{
    ch = ch;
}
//串口打印配置函数 printf
int fputc(int ch, FILE *f)  
{
	HAL_UART_Transmit(&huart2,(uint8_t *)&ch,1,0xFFFF);
	return ch;
}
//串口接收函数 scanf
int fgetc(FILE *f)
{
  uint8_t ch = 0;
  HAL_UART_Receive(&huart2,&ch,1,0xFFFF);
  return ch;
}

